<div class="layui-form-item photo">
        <label class="layui-form-label">头像：</label>

        <? if ($employee['photo']) { ?>
            <img src="../../../../uploadfiles/<? echo $theme_folder ?>/<? echo $employee['photo'] ?>" width="100"
                style="border:solid 1px #ececec; background-color:#ececec"/>
        <? } else {
            echo "暂无资料";
        }
        ?>
    </div>

    <div class="layui-form-item layui-form-item photo">
    <label class="layui-form-label">上传文件：</label><input type="file" name="photo" onchange="fileChange(this);"/>
    <em class="explain">上传头像,建议尺寸300px*300px</em><br/><br/></div>   